package com.appleframework.project.demo.provider.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.appleframework.model.page.Pagination;
import com.appleframework.project.demo.common.entity.ClientDetails;
import com.appleframework.project.demo.common.model.ClientDetailsSo;
import com.appleframework.project.demo.provider.mapper.ClientDetailsMapper;

@Repository
public class ClientDetailsDao {

	@Resource
	private ClientDetailsMapper clientDetailsMapper;
	
	public ClientDetails loadClientByClientId(String clientId) {
		return clientDetailsMapper.selectByPrimaryKey(clientId);
	}
	
	public List<ClientDetails> selectAll() {
		return clientDetailsMapper.selectAll();
	}
	
	public List<ClientDetails> selectByPage(Pagination page, ClientDetailsSo so) {
		return clientDetailsMapper.selectByPage(page, so);
	}
}
